<?php

declare(strict_types=1);

namespace app\admin\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class MinerFirmwareversion extends Model
{
    //
    /**
     * @describe
     * @author: Bobo
     * @date: 2025-06-27 18:29:14 
     * @param [type] @required
     * @return Renderable
     */
    public function pid()
    {
        return $this->belongsTo(Product::class, 'pid', 'id')->bind([
            'pid_name' => 'cname'
        ]);
    }
    public function creator()
    {
        return $this->belongsTo(Operator::class, 'creator', 'id')->bind([
            'creator_name' => 'cname'
        ]);
    }
    public function updater()
    {
        return $this->belongsTo(Operator::class, 'updater', 'id')->bind([
            'updater_name' => 'cname'
        ]);
    }
}
